﻿<UserControl x:Class="Greenshot2.ContextMenu.TrayIcon"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:taskbar="clr-namespace:Hardcodet.Wpf.TaskbarNotification"
             xmlns:l="clr-namespace:Greenshot2Core.WPF.Markup;assembly=Greenshot2Core">
    <taskbar:TaskbarIcon x:Name="taskbarIcon" IconSource="/Icons/greenshot.ico" ToolTipText="Greenshot 2" MenuActivation="LeftOrRightClick">
        <taskbar:TaskbarIcon.ContextMenu>
            <ContextMenu TextOptions.TextRenderingMode="ClearType" TextOptions.TextFormattingMode="Display" UseLayoutRounding="True">
                <MenuItem StaysOpenOnClick="True" Background="Blue" Foreground="White" FontWeight="Bold" FontSize="20" IsEnabled="False">
                    <MenuItem.Header>
                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">Greenshot</TextBlock>
                    </MenuItem.Header>
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/greenshot.ico"/>
                    </MenuItem.Icon>
                </MenuItem>

                <MenuItem Header="{l:Language contextmenu_capturearea}" Command="{Binding Path=CaptureRegionCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_capturearea.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_capturelastregion}" Command="{Binding Path=CaptureLastRegionCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_capturelastregion.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_capturewindow}" Command="{Binding Path=CaptureWindowCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_capturewindow.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_capturefullscreen}" Command="{Binding Path=CaptureFullscreenCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_capturefullscreen.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_captureie}" Command="{Binding Path=CaptureIECommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_captureie.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_capturewindowfromlist}" Command="{Binding Path=CaptureWindowFromListCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_capturewindow.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_captureiefromlist}"  Command="{Binding Path=CaptureIEFromListCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_captureie.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_captureclipboard}" Command="{Binding Path=OpenImageFromClipboardCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_captureclipboard.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_openfile}" Command="{Binding Path=OpenImageFromFileCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_openfile.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_openrecentcapture}"/>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_quicksettings}"/>
                <MenuItem Header="{l:Language contextmenu_settings}" Command="{Binding Path=OpenSettingsCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_settings.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_help}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_help.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_donate}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_donate.png"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="{l:Language contextmenu_about}" Command="{Binding Path=AboutCommand}"/>
                <Separator/>
                <MenuItem Header="{l:Language contextmenu_exit}" Command="{Binding Path=ExitCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Greenshot2;component/Icons/contextmenu_exit.png"/>
                    </MenuItem.Icon>
                </MenuItem>
            </ContextMenu>
        </taskbar:TaskbarIcon.ContextMenu>
    </taskbar:TaskbarIcon>
</UserControl>
